package com.tianyu.inspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**********************************
 * @Author YSW
 * @Description 摄像头
 * @Date 2021/1/5 - 11:34
 **********************************/

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Camera implements Serializable {

    @TableId
    private Integer id;
    private String name;
    private String number;
    private Double lng;
    private Double lat;
    private String address;
    private String url;
    private Double directionAngle;
    private String description;

    /**
     * 摄像头类型
     */
    private Integer cameraTypeId;

    /**
     * 管道ID
     */
    private Integer pipelineId;

    /**
     * 项目ID
     */
    private Integer projectId;
    private Date createTime;
    private Date modifyTime;

    @JsonIgnore
    private Integer state;

    /**
     * 摄像头类型
     */
    @TableField(exist = false)
    private String cameraTypeName;

    /**
     * 摄像头类型ICON
     */
    @TableField(exist = false)
    private String cameraTypeIcon;

    /**
     * 管道名称
     */
    @TableField(exist = false)
    private String pipelineName;
}
